package com.aliyun.properties;

import com.aliyun.properties.pojo.oss.Oss;
import com.aliyun.properties.pojo.sms.Sms;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * 示例配置文件
 * aliyun:
 *   sms:
 *     sts:
 *       accessKeyId: "LTAI5tDkV9xeYpbKRYW5nsCh"
 *       accessKeySecret: "97aVSAvq2iniEtRYlx995Ds1svTT3J"
 *       ramRoleArn: "acs:ram::1660784908493827:role/aliyunsms"
 *       endpoint: "sts.aliyuncs.com"
 *       durationSeconds: 3600
 *     signName: "小杰外卖"
 *     endpoint: "dysmsapi.aliyuncs.com"
 *     templateCodes:
 *       login_code: "SMS_478425177"
 *       publish_code: "SMS_461405365"
 */
@ConfigurationProperties(prefix = "aliyun")
@EnableConfigurationProperties(AliyunProperties.class)
@Data
@Slf4j
public class AliyunProperties {
    private Sms sms;
    private Oss oss;
}
